package com.winsdom.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import net.bytebuddy.implementation.bytecode.Throw;
import org.springframework.beans.factory.annotation.Value;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleDTO {

    @Schema(name = "页号")
    @NotNull(message = "页号不能为空")
    @Min(value = 1 ,message = "页号必须大于等于1")
    private Integer pageNum = 1;
    @Schema(name = "每页大小")
    @NotNull(message = "每页大小不能为空")
    @Min(value = 1,message = "每页大小必须大于等于1")
    private Integer pageSize = 10;
    @Schema(name = "角色名称")
    private String roleName;
    @Schema(name = "角色状态")
    private Integer status;

}
